package net.uhuijia.goods.goodintroduce.service;

import net.uhuijia.enums.GoodIntroduceType;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.goods.goodintroduce.persistence.model.GoodIntroduce;
import net.uhuijia.goods.goodintroduce.persistence.model.GoodIntroduceExample;

import java.util.List;


@Service
@Transactional
public interface GoodIntroduceService
     extends BaseService<GoodIntroduce,GoodIntroduceExample> {
	
	/**
	 * 添加商品详情、规格图片
	 * @author 王文鑫  
	 * @date 2018年9月29日  
	 * @param goodId
	 * @param image
	 * @param type
	 * @return
	 */
	GoodIntroduce addGoodIntroduce(String goodId,String image,String type);
	/**
	 * @Author xzj
	 * @Description //根据商品spuId  以及 类型查询 商品简介图片
	 * @Date  2018/10/6
	 * @Param
	 * @return
	 **/
	List<GoodIntroduce> findGoodIntroduceBySpuIdAndType(String spuId, GoodIntroduceType goodIntroduceType);
	/**
	 * @Author xzj
	 * @Description //根据商品spuId  以及 类型查询 商品简介图片
	 * @Date  2018/10/6
	 * @Param
	 * @return
	 **/
	List<String> findGoodIntroduceImagesBySpuIdAndType(String spuId, GoodIntroduceType goodIntroduceType);
}